package org.freedom.imarket.repository;

import org.freedom.imarket.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User, String> {

	@Query("select u from User u   where u.login=?1 and u.password=?2" )
	public User findUserByUsername(String login, String password);
}
